package com.qhhc.mapper;

import com.qhhc.entity.CarOwner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CarOwnerMapper {

    void insertCarOwner(CarOwner carOwner);

    List<CarOwner> selectAllCarOwners();
    CarOwner selectCarOwnerById(@Param("owner_id") Long owner_id);
    CarOwner selectCarOwnerByIdv2(@Param("owner_id") Long owner_id);
    void updateCarOwner(CarOwner carOwner);

    void deleteCarOwner(Long ownerId);
}
